<template>
  <div>
    <TableSelf v-bind="tableConfig">
      <template #option>
        <el-button>aaaa</el-button>
      </template>
    </TableSelf>
  </div>
</template>

<script>
export default {
  name: "TextView",
  data() {
    return {
      tableConfig: {
        columns: [
          {
            prop: "date",
            label: "日期"
          },
          {
            prop: "name",
            label: "姓名"
          },
          {
            slotName: "option",
            label: "操作"
          }
        ],
        data: [
          {
            date: '2016-05-03',
            name: 'Tom',
            address: 'No. 189, Grove St, Los Angeles',
          },
          {
            date: '2016-05-02',
            name: 'Tom',
            address: 'No. 189, Grove St, Los Angeles',
          },
          {
            date: '2016-05-04',
            name: 'Tom',
            address: 'No. 189, Grove St, Los Angeles',
          },
        ]
      }
    }
  }
}
</script>

<style scoped>

</style>
